package com.jic.member.job;

import com.jic.common.base.vo.RestResult;
import com.jic.member.request.TripLabelArrayRequest;
import com.jic.member.service.TripUserDelineateService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @author yinhaijun
 * @date: 2020/6/5
 */
@RestController
@Slf4j
@RequestMapping("/tripUserDelineate")
@Api(tags = " [旅程设置]用户圈定")
public class TripUserDelineateController {

    @Autowired
    private TripUserDelineateService tripUserDelineateService;

    // 按标签查询筛选出会员数量
    @ApiOperation(value = "根据标签查询圈定的会员数量")
    @RequestMapping(value = "", method = RequestMethod.POST)
    public RestResult<Integer> queryDelineateNum(@RequestBody TripLabelArrayRequest request){
        return RestResult.success(tripUserDelineateService.queryDelineateNum(request));
    }

}
